package com.ruoyi.system.api.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value="MaterialInfojkResp对象", description="句块信息出参")
public class MaterialInfojkResp extends BaseModel implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "所属年级")
    private Integer grade;
    private String gradeName;

    @ApiModelProperty(value = "所属科目")
    private Integer subject;
    private String subjectName;

    @ApiModelProperty(value = "所属年份")
    private Integer age;

    @ApiModelProperty(value = "所属学期")
    private Integer semester;
    private String semesterName;

    @ApiModelProperty(value = "句块内容")
    private String materialName;
    private String materialNamet;
    private String materialNametk;
    private String url;
    private Integer jkNum;
    private Integer jkNumZw;
    private Integer jkNumWZw;

    @ApiModelProperty(value = "句块关键词")
    private String materialKey;

    @ApiModelProperty(value = "所属地域")
    private String region;

    @ApiModelProperty(value = "版本")
    private String version;
    private String collection;

    @ApiModelProperty(value = "是否免费")
    private Integer isFree;

    @ApiModelProperty(value = "收费金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "分销比率")
    private BigDecimal discount;

    @ApiModelProperty(value = "分销梯度比率")
    private BigDecimal discountBl;

    @ApiModelProperty(value = "上传用户ID")
    private Long userId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "是否支付")
    private boolean isPay;

    private List<MaterialInfojkResp> listJk;
}
